
extension DateTimeExtensions on DateTime {
  DateTime startOfDay() {
    return DateTime(this.year, this.month, this.day);
  }

  DateTime endOfDay() {
    return DateTime(this.year, this.month, this.day, 23, 59, 59);
  }
}


DateTime getTodayMidnight() {
  final now = DateTime.now();
  final todayMidnight = DateTime(now.year, now.month, now.day);
  return todayMidnight;
}

DateTime getTodayEndTime() {
  final now = DateTime.now();
  final todayEndTime = DateTime(now.year, now.month, now.day, 23, 59, 59);
  return todayEndTime;
}